import http from './http'
import qs from 'qs'

const userConfig = {
    transformRequest: [
        function (data) {
            return qs.stringify(data);
        }
    ],
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
    }
};
const selectStoreList = params => http('post', '/api/getAllStores', params,userConfig)
const deleteStore = params => http('post', '/api/deleteStores', params, userConfig)
const updateStore = params => http('post', '/api/updateStores', params, userConfig)
const addStore = params => http('post', '/api/saveStores', params, userConfig)
// const selectList = params => http('post', '/api/v1/user/list', params)

export {selectStoreList,deleteStore,updateStore,addStore}